<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>



<!DOCTYPE HTML PUBLIC "-//W3C//Ddiv HTML 4.01 Transitional//EN">
<html>
<head>
	<base href="<%=basePath%>">

	<title>销售修改</title>

	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<link rel="stylesheet" href="<%=basePath%>css/sale_new.css">
	<link href="http://libs.baidu.com/bootstrap/3.0.3/css/bootstrap.min.css" rel="stylesheet">
	<script src="http://libs.baidu.com/bootstrap/3.0.3/js/bootstrap.min.js"></script>
	<script >
        function clearNoNum(obj)
        {
            obj.value = obj.value.replace(/[^\d.]/g,"");  //清除“数字”和“.”以外的字符
            obj.value = obj.value.replace(/^\./g,"");  //验证第一个字符是数字而不是.
            obj.value = obj.value.replace(/\.{2,}/g,"."); //只保留第一个. 清除多余的.
            obj.value = obj.value.replace(".","$#$").replace(/\./g,"").replace("$#$",".");
        }
	</script>
</head>

<body>
<!-- 新的样式表 -->
	<h2 style="text-align: center">销售表</h2>
	<form action="updateByID" method="post">
		<%--栅格--%>
		<div class="container">
			<div class="row fot">
				<div class="col-md-3 box1">
					<div>序号 ：
						<input type="hidden" name="id" value="${sa.id}"/>
						<input type="text" name="bid" value="${sa.id}" disabled="disabled"/>
					</div>
				</div>
				<div class="col-md-3 box1">
					<div>业务状态 ：
						<select name="status" >
							<option>${sa.status}</option>
							<c:forEach items="${sessionScope.status}" var="stu">
								<c:if test="${sa.status!=stu.paramValue}">
									<option>${stu.paramValue}</option>
								</c:if>
							</c:forEach>
						</select>
					</div>
				</div>
                <div class="col-md-3 box1">
                    <div>客户名称 ：<input type="text" name="sname" value="${sa.sname}"/></div>
                </div>
			</div>
			<div class="row fot">
				<div class="col-md-3 box1">
					<div>业务类别 ：
						<select name="stype">
							<option>${sa.stype}</option>
							<c:forEach items="${sessionScope.yTypes}" var="type">
								<c:if test="${sa.stype!=type.paramValue}">
									<option>${type.paramValue}</option>
								</c:if>
							</c:forEach>
						</select>
					</div>
				</div>
                <div class="col-md-3 box1">
                    <div>金额 ：<input type="text" name="money" value="${sa.money}" onkeyup="clearNoNum(this)"/></div>
                </div>
                <div class="col-md-3 box1">
                    <div>销售负责人 ：
                        <select name="sleader">
                            <option>${sa.sleader}</option>
                            <c:forEach items="${sessionScope.leaders}" var="leader">
                                <c:if test="${sa.sleader!=leader.paramValue}">
                                    <option>
                                            ${leader.paramValue}
                                    </option>
                                </c:if>
                            </c:forEach>
                        </select>
                    </div>
                </div>
			</div>
			<div class="row fot">
				<div class="col-md-3 box1">
					<div>简要说明 ：<textarea  cols="20" rows="5" name="content">${sa.content}</textarea></div>
				</div>
				<div class="col-md-3 box1">
					<div>工作要点 ：<textarea  cols="20" rows="5" name="point">${sa.point}</textarea></div>
				</div>
				<div class="col-md-3 box1">
					<div>工作绩效目标(A)：<input type="text" name="target" value="${sa.target}"/></div>
				</div>
        </div>
					<div class="caozuo1">
						<input class="xiu" type="submit" value="修改" />
						<a href="findSales" class="return">返回</a>
					</div>
        </div>
	</form>
</body>
</html>
